//===----------------------------------------------------------------------===//
//
// This source file is part of the Soto for AWS open source project
//
// Copyright (c) 2017-2024 the Soto project authors
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
// See CONTRIBUTORS.txt for the list of Soto project authors
//
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//

// THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator.
// DO NOT EDIT.

#if canImport(FoundationEssentials)
import FoundationEssentials
#else
import Foundation
#endif
@_exported import SotoCore

/// Service object for interacting with AWS EFS service.
///
/// Amazon Elastic File System Amazon Elastic File System (Amazon EFS) provides simple, scalable file storage for use with Amazon EC2 Linux and Mac instances in the Amazon Web Services Cloud. With Amazon EFS, storage capacity is elastic, growing and shrinking automatically as you add and remove files, so that your applications have the storage they need, when they need it. For more information, see the Amazon Elastic File System API Reference and the Amazon Elastic File System User Guide.
public struct EFS: AWSService {
    // MARK: Member variables

    /// Client used for communication with AWS
    public let client: AWSClient
    /// Service configuration
    public let config: AWSServiceConfig

    // MARK: Initialization

    /// Initialize the EFS client
    /// - parameters:
    ///     - client: AWSClient used to process requests
    ///     - region: Region of server you want to communicate with. This will override the partition parameter.
    ///     - partition: AWS partition where service resides, standard (.aws), china (.awscn), government (.awsusgov).
    ///     - endpoint: Custom endpoint URL to use instead of standard AWS servers
    ///     - middleware: Middleware chain used to edit requests before they are sent and responses before they are decoded 
    ///     - timeout: Timeout value for HTTP requests
    ///     - byteBufferAllocator: Allocator for ByteBuffers
    ///     - options: Service options
    public init(
        client: AWSClient,
        region: SotoCore.Region? = nil,
        partition: AWSPartition = .aws,
        endpoint: String? = nil,
        middleware: AWSMiddlewareProtocol? = nil,
        timeout: TimeAmount? = nil,
        byteBufferAllocator: ByteBufferAllocator = ByteBufferAllocator(),
        options: AWSServiceConfig.Options = []
    ) {
        self.client = client
        self.config = AWSServiceConfig(
            region: region,
            partition: region?.partition ?? partition,
            serviceName: "EFS",
            serviceIdentifier: "elasticfilesystem",
            serviceProtocol: .restjson,
            apiVersion: "2015-02-01",
            endpoint: endpoint,
            variantEndpoints: Self.variantEndpoints,
            errorType: EFSErrorType.self,
            middleware: middleware,
            timeout: timeout,
            byteBufferAllocator: byteBufferAllocator,
            options: options
        )
    }




    /// FIPS and dualstack endpoints
    static var variantEndpoints: [EndpointVariantType: AWSServiceConfig.EndpointVariant] {[
        [.fips]: .init(endpoints: [
            "af-south-1": "elasticfilesystem-fips.af-south-1.amazonaws.com",
            "ap-east-1": "elasticfilesystem-fips.ap-east-1.amazonaws.com",
            "ap-northeast-1": "elasticfilesystem-fips.ap-northeast-1.amazonaws.com",
            "ap-northeast-2": "elasticfilesystem-fips.ap-northeast-2.amazonaws.com",
            "ap-northeast-3": "elasticfilesystem-fips.ap-northeast-3.amazonaws.com",
            "ap-south-1": "elasticfilesystem-fips.ap-south-1.amazonaws.com",
            "ap-south-2": "elasticfilesystem-fips.ap-south-2.amazonaws.com",
            "ap-southeast-1": "elasticfilesystem-fips.ap-southeast-1.amazonaws.com",
            "ap-southeast-2": "elasticfilesystem-fips.ap-southeast-2.amazonaws.com",
            "ap-southeast-3": "elasticfilesystem-fips.ap-southeast-3.amazonaws.com",
            "ap-southeast-4": "elasticfilesystem-fips.ap-southeast-4.amazonaws.com",
            "ap-southeast-5": "elasticfilesystem-fips.ap-southeast-5.amazonaws.com",
            "ap-southeast-7": "elasticfilesystem-fips.ap-southeast-7.amazonaws.com",
            "ca-central-1": "elasticfilesystem-fips.ca-central-1.amazonaws.com",
            "ca-west-1": "elasticfilesystem-fips.ca-west-1.amazonaws.com",
            "cn-north-1": "elasticfilesystem-fips.cn-north-1.amazonaws.com.cn",
            "cn-northwest-1": "elasticfilesystem-fips.cn-northwest-1.amazonaws.com.cn",
            "eu-central-1": "elasticfilesystem-fips.eu-central-1.amazonaws.com",
            "eu-central-2": "elasticfilesystem-fips.eu-central-2.amazonaws.com",
            "eu-isoe-west-1": "elasticfilesystem-fips.eu-isoe-west-1.cloud.adc-e.uk",
            "eu-north-1": "elasticfilesystem-fips.eu-north-1.amazonaws.com",
            "eu-south-1": "elasticfilesystem-fips.eu-south-1.amazonaws.com",
            "eu-south-2": "elasticfilesystem-fips.eu-south-2.amazonaws.com",
            "eu-west-1": "elasticfilesystem-fips.eu-west-1.amazonaws.com",
            "eu-west-2": "elasticfilesystem-fips.eu-west-2.amazonaws.com",
            "eu-west-3": "elasticfilesystem-fips.eu-west-3.amazonaws.com",
            "il-central-1": "elasticfilesystem-fips.il-central-1.amazonaws.com",
            "me-central-1": "elasticfilesystem-fips.me-central-1.amazonaws.com",
            "me-south-1": "elasticfilesystem-fips.me-south-1.amazonaws.com",
            "mx-central-1": "elasticfilesystem-fips.mx-central-1.amazonaws.com",
            "sa-east-1": "elasticfilesystem-fips.sa-east-1.amazonaws.com",
            "us-east-1": "elasticfilesystem-fips.us-east-1.amazonaws.com",
            "us-east-2": "elasticfilesystem-fips.us-east-2.amazonaws.com",
            "us-gov-east-1": "elasticfilesystem-fips.us-gov-east-1.amazonaws.com",
            "us-gov-west-1": "elasticfilesystem-fips.us-gov-west-1.amazonaws.com",
            "us-iso-east-1": "elasticfilesystem-fips.us-iso-east-1.c2s.ic.gov",
            "us-iso-west-1": "elasticfilesystem-fips.us-iso-west-1.c2s.ic.gov",
            "us-isob-east-1": "elasticfilesystem-fips.us-isob-east-1.sc2s.sgov.gov",
            "us-isof-east-1": "elasticfilesystem-fips.us-isof-east-1.csp.hci.ic.gov",
            "us-isof-south-1": "elasticfilesystem-fips.us-isof-south-1.csp.hci.ic.gov",
            "us-west-1": "elasticfilesystem-fips.us-west-1.amazonaws.com",
            "us-west-2": "elasticfilesystem-fips.us-west-2.amazonaws.com"
        ])
    ]}

    // MARK: API Calls

    /// Creates an EFS access point. An access point is an application-specific view into an EFS file system that applies an operating system user and group, and a file system path, to any file system request made through the access point. The operating system user and group override any identity information provided by the NFS client. The file system path is exposed as the access point's root directory. Applications using the access point can only access data in the application's own directory and any subdirectories. A file system can have a maximum of 10,000 access points unless you request an increase. To learn more, see Mounting a file system using EFS access points.  If multiple requests to create access points on the same file system are sent in quick succession, and the file system is near the limit of access points, you may experience a throttling response for these requests. This is to ensure that the file system does not exceed the stated access point limit.  This operation requires permissions for the elasticfilesystem:CreateAccessPoint action. Access points can be tagged on creation. If tags are specified in the creation action, IAM performs additional authorization on the elasticfilesystem:TagResource action to verify if users have permissions to create tags. Therefore, you must grant explicit permissions to use the elasticfilesystem:TagResource action. For more information, see Granting permissions to tag resources during creation.
    @Sendable
    @inlinable
    public func createAccessPoint(_ input: CreateAccessPointRequest, logger: Logger = AWSClient.loggingDisabled) async throws -> AccessPointDescription {
        try await self.client.execute(
            operation: "CreateAccessPoint", 
            path: "/2015-02-01/access-points", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Creates an EFS access point. An access point is an application-specific view into an EFS file system that applies an operating system user and group, and a file system path, to any file system request made through the access point. The operating system user and group override any identity information provided by the NFS client. The file system path is exposed as the access point's root directory. Applications using the access point can only access data in the application's own directory and any subdirectories. A file system can have a maximum of 10,000 access points unless you request an increase. To learn more, see Mounting a file system using EFS access points.  If multiple requests to create access points on the same file system are sent in quick succession, and the file system is near the limit of access points, you may experience a throttling response for these requests. This is to ensure that the file system does not exceed the stated access point limit.  This operation requires permissions for the elasticfilesystem:CreateAccessPoint action. Access points can be tagged on creation. If tags are specified in the creation action, IAM performs additional authorization on the elasticfilesystem:TagResource action to verify if users have permissions to create tags. Therefore, you must grant explicit permissions to use the elasticfilesystem:TagResource action. For more information, see Granting permissions to tag resources during creation.
    ///
    /// Parameters:
    ///   - clientToken: A string of up to 64 ASCII characters that Amazon EFS uses to ensure idempotent creation.
    ///   - fileSystemId: The ID of the EFS file system that the access point provides access to.
    ///   - posixUser: The operating system user and group applied to all file system requests made using the access point.
    ///   - rootDirectory: Specifies the directory on the EFS file system that the access point exposes as the root directory of your file system to NFS clients using the access point. The clients using the access point can only access the root directory and below. If the RootDirectory > Path specified does not exist, Amazon EFS creates it and applies the CreationInfo settings when a client connects to an access point. When specifying a RootDirectory, you must provide the Path, and the CreationInfo. Amazon EFS creates a root directory only if you have provided the  CreationInfo: OwnUid, OwnGID, and permissions for the directory.  If  you do not provide this information, Amazon EFS does not create the root directory. If the root directory does not exist, attempts to mount  using the access point will fail.
    ///   - tags: Creates tags associated with the access point. Each tag is a key-value pair, each key must be unique. For more  information, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference Guide.
    ///   - logger: Logger use during operation
    @inlinable
    public func createAccessPoint(
        clientToken: String = CreateAccessPointRequest.idempotencyToken(),
        fileSystemId: String,
        posixUser: PosixUser? = nil,
        rootDirectory: RootDirectory? = nil,
        tags: [Tag]? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> AccessPointDescription {
        let input = CreateAccessPointRequest(
            clientToken: clientToken, 
            fileSystemId: fileSystemId, 
            posixUser: posixUser, 
            rootDirectory: rootDirectory, 
            tags: tags
        )
        return try await self.createAccessPoint(input, logger: logger)
    }

    /// Creates a new, empty file system. The operation requires a creation token in the request that Amazon EFS uses to ensure idempotent creation (calling the operation with same creation token has no effect). If a file system does not currently exist that is owned by the caller's Amazon Web Services account with the specified creation token, this operation does the following:   Creates a new, empty file system. The file system will have an Amazon EFS assigned ID, and an initial lifecycle state creating.   Returns with the description of the created file system.   Otherwise, this operation returns a FileSystemAlreadyExists error with the ID of the existing file system.  For basic use cases, you can use a randomly generated UUID for the creation token.  The idempotent operation allows you to retry a CreateFileSystem call without risk of creating an extra file system. This can happen when an initial call fails in a way that leaves it uncertain whether or not a file system was actually created. An example might be that a transport level timeout occurred or your connection was reset. As long as you use the same creation token, if the initial call had succeeded in creating a file system, the client can learn of its existence from the FileSystemAlreadyExists error. For more information, see  Creating a file system in the Amazon EFS User Guide.  The CreateFileSystem call returns while the file system's lifecycle state is still creating. You can check the file system creation status by calling the DescribeFileSystems operation, which among other things returns the file system state.  This operation accepts an optional PerformanceMode parameter that you choose for your file system. We recommend generalPurpose PerformanceMode for all file systems. The maxIO mode is a previous generation performance type that is designed for highly parallelized workloads that can tolerate higher latencies than the generalPurpose mode. MaxIO mode is not supported for One Zone file systems or file systems that use Elastic throughput. The PerformanceMode can't be changed after the file system has been created. For more information, see Amazon EFS performance modes. You can set the throughput mode for the file system using the ThroughputMode parameter. After the file system is fully created, Amazon EFS sets its lifecycle state to available, at which point you can create one or more mount targets for the file system in your VPC. For more information, see CreateMountTarget. You mount your Amazon EFS file system on an EC2 instances in your VPC by using the mount target. For more information, see Amazon EFS: How it Works.  This operation requires permissions for the elasticfilesystem:CreateFileSystem action.  File systems can be tagged on creation. If tags are specified in the creation action, IAM performs additional authorization on the elasticfilesystem:TagResource action to verify if users have permissions to create tags. Therefore, you must grant explicit permissions to use the elasticfilesystem:TagResource action. For more information, see Granting permissions to tag resources during creation.
    @Sendable
    @inlinable
    public func createFileSystem(_ input: CreateFileSystemRequest, logger: Logger = AWSClient.loggingDisabled) async throws -> FileSystemDescription {
        try await self.client.execute(
            operation: "CreateFileSystem", 
            path: "/2015-02-01/file-systems", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Creates a new, empty file system. The operation requires a creation token in the request that Amazon EFS uses to ensure idempotent creation (calling the operation with same creation token has no effect). If a file system does not currently exist that is owned by the caller's Amazon Web Services account with the specified creation token, this operation does the following:   Creates a new, empty file system. The file system will have an Amazon EFS assigned ID, and an initial lifecycle state creating.   Returns with the description of the created file system.   Otherwise, this operation returns a FileSystemAlreadyExists error with the ID of the existing file system.  For basic use cases, you can use a randomly generated UUID for the creation token.  The idempotent operation allows you to retry a CreateFileSystem call without risk of creating an extra file system. This can happen when an initial call fails in a way that leaves it uncertain whether or not a file system was actually created. An example might be that a transport level timeout occurred or your connection was reset. As long as you use the same creation token, if the initial call had succeeded in creating a file system, the client can learn of its existence from the FileSystemAlreadyExists error. For more information, see  Creating a file system in the Amazon EFS User Guide.  The CreateFileSystem call returns while the file system's lifecycle state is still creating. You can check the file system creation status by calling the DescribeFileSystems operation, which among other things returns the file system state.  This operation accepts an optional PerformanceMode parameter that you choose for your file system. We recommend generalPurpose PerformanceMode for all file systems. The maxIO mode is a previous generation performance type that is designed for highly parallelized workloads that can tolerate higher latencies than the generalPurpose mode. MaxIO mode is not supported for One Zone file systems or file systems that use Elastic throughput. The PerformanceMode can't be changed after the file system has been created. For more information, see Amazon EFS performance modes. You can set the throughput mode for the file system using the ThroughputMode parameter. After the file system is fully created, Amazon EFS sets its lifecycle state to available, at which point you can create one or more mount targets for the file system in your VPC. For more information, see CreateMountTarget. You mount your Amazon EFS file system on an EC2 instances in your VPC by using the mount target. For more information, see Amazon EFS: How it Works.  This operation requires permissions for the elasticfilesystem:CreateFileSystem action.  File systems can be tagged on creation. If tags are specified in the creation action, IAM performs additional authorization on the elasticfilesystem:TagResource action to verify if users have permissions to create tags. Therefore, you must grant explicit permissions to use the elasticfilesystem:TagResource action. For more information, see Granting permissions to tag resources during creation.
    ///
    /// Parameters:
    ///   - availabilityZoneName: For One Zone file systems, specify the Amazon Web Services Availability Zone in which to create the file system. Use the format us-east-1a to specify the  Availability Zone. For more information about One Zone file systems, see EFS file system types in the Amazon EFS User Guide.  One Zone file systems are not available in all Availability Zones in Amazon Web Services Regions where Amazon EFS is available.
    ///   - backup: Specifies whether automatic backups are enabled on the file system that you are creating. Set the value to true to enable automatic backups. If you are creating a One Zone file system, automatic backups are enabled by default. For more information, see Automatic backups in the Amazon EFS User Guide. Default is false. However, if you specify an AvailabilityZoneName,  the default is true.  Backup is not available in all Amazon Web Services Regions where Amazon EFS is available.
    ///   - creationToken: A string of up to 64 ASCII characters. Amazon EFS uses this to ensure idempotent creation.
    ///   - encrypted: A Boolean value that, if true, creates an encrypted file system. When creating an encrypted file system, you have the option of specifying an existing Key Management Service key (KMS key). If you don't specify a KMS key, then the default KMS key for Amazon EFS, /aws/elasticfilesystem, is used to protect the encrypted file system.
    ///   - kmsKeyId: The ID of the KMS key that you want to use to protect the encrypted file system. This parameter is required only if you want to use a non-default KMS key. If this parameter is not specified, the default KMS key for Amazon EFS is used. You can specify a KMS key ID using the following formats:   Key ID - A unique identifier of the key, for example 1234abcd-12ab-34cd-56ef-1234567890ab.   ARN - An Amazon Resource Name (ARN) for the key, for example arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab.   Key alias - A previously created display name for a key, for example alias/projectKey1.   Key alias ARN - An ARN for a key alias, for example arn:aws:kms:us-west-2:444455556666:alias/projectKey1.   If you use KmsKeyId, you must set the CreateFileSystemRequest$Encrypted  parameter to true.  EFS accepts only symmetric KMS keys. You cannot use asymmetric  KMS keys with Amazon EFS file systems.
    ///   - performanceMode: The performance mode of the file system. We recommend generalPurpose performance mode for all file systems. File systems using the maxIO performance mode can scale to higher levels of aggregate throughput and operations per second with a tradeoff of slightly higher latencies for most file operations. The performance mode can't be changed after the file system has been created. The maxIO mode is not supported on One Zone file systems.  Due to the higher per-operation latencies with Max I/O, we recommend using General Purpose performance mode for all file systems.  Default is generalPurpose.
    ///   - provisionedThroughputInMibps: The throughput, measured in mebibytes per second (MiBps), that you want to provision for a file system that you're creating. Required if ThroughputMode is set to provisioned. Valid values are 1-3414 MiBps, with the upper limit depending on Region. To increase this limit, contact Amazon Web ServicesSupport. For more information, see Amazon EFS quotas that you can increase in the Amazon EFS User Guide.
    ///   - tags: Use to create one or more tags associated with the file system. Each tag is a user-defined key-value pair. Name your file system on creation by including a "Key":"Name","Value":"{value}" key-value pair. Each key must be unique. For more  information, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference Guide.
    ///   - throughputMode: Specifies the throughput mode for the file system. The mode can be bursting, provisioned, or elastic. If you set ThroughputMode to provisioned, you must also set a value for ProvisionedThroughputInMibps. After you create the file system, you can decrease your file system's Provisioned throughput or change between the throughput modes, with certain time restrictions. For more information, see Specifying throughput with provisioned mode in the Amazon EFS User Guide.  Default is bursting.
    ///   - logger: Logger use during operation
    @inlinable
    public func createFileSystem(
        availabilityZoneName: String? = nil,
        backup: Bool? = nil,
        creationToken: String = CreateFileSystemRequest.idempotencyToken(),
        encrypted: Bool? = nil,
        kmsKeyId: String? = nil,
        performanceMode: PerformanceMode? = nil,
        provisionedThroughputInMibps: Double? = nil,
        tags: [Tag]? = nil,
        throughputMode: ThroughputMode? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> FileSystemDescription {
        let input = CreateFileSystemRequest(
            availabilityZoneName: availabilityZoneName, 
            backup: backup, 
            creationToken: creationToken, 
            encrypted: encrypted, 
            kmsKeyId: kmsKeyId, 
            performanceMode: performanceMode, 
            provisionedThroughputInMibps: provisionedThroughputInMibps, 
            tags: tags, 
            throughputMode: throughputMode
        )
        return try await self.createFileSystem(input, logger: logger)
    }

    /// Creates a mount target for a file system. You can then mount the file system on EC2 instances by using the mount target. You can create one mount target in each Availability Zone in your VPC. All EC2 instances in a VPC within a given Availability Zone share a single mount target for a given file system. If you have multiple subnets in an Availability Zone, you create a mount target in one of the subnets. EC2 instances do not need to be in the same subnet as the mount target in order to access their file system. You can create only one mount target for a One Zone file system. You must create that mount target in the same Availability Zone in which the file system is located. Use the AvailabilityZoneName and AvailabiltyZoneId properties in the DescribeFileSystems response object to get this information. Use the subnetId associated with the file system's Availability Zone when creating the mount target. For more information, see Amazon EFS: How it Works.  To create a mount target for a file system, the file system's lifecycle state must be available. For more information, see DescribeFileSystems. In the request, provide the following:   The file system ID for which you are creating the mount target.   A subnet ID, which determines the following:   The VPC in which Amazon EFS creates the mount target   The Availability Zone in which Amazon EFS creates the mount target   The IP address range from which Amazon EFS selects the IP address of the mount target (if you don't specify an IP address in the request)     After creating the mount target, Amazon EFS returns a response that includes, a MountTargetId and an IpAddress. You use this IP address when mounting the file system in an EC2 instance. You can also use the mount target's DNS name when mounting the file system. The EC2 instance on which you mount the file system by using the mount target can resolve the mount target's DNS name to its IP address. For more information, see How it Works: Implementation Overview.  Note that you can create mount targets for a file system in only one VPC, and there can be only one mount target per Availability Zone. That is, if the file system already has one or more mount targets created for it, the subnet specified in the request to add another mount target must meet the following requirements:   Must belong to the same VPC as the subnets of the existing mount targets   Must not be in the same Availability Zone as any of the subnets of the existing mount targets   If the request satisfies the requirements, Amazon EFS does the following:   Creates a new mount target in the specified subnet.   Also creates a new network interface in the subnet as follows:   If the request provides an IpAddress, Amazon EFS assigns that IP address to the network interface. Otherwise, Amazon EFS assigns a free address in the subnet (in the same way that the Amazon EC2 CreateNetworkInterface call does when a request does not specify a primary private IP address).   If the request provides SecurityGroups, this network interface is associated with those security groups. Otherwise, it belongs to the default security group for the subnet's VPC.   Assigns the description Mount target fsmt-id for file system fs-id where  fsmt-id is the mount target ID, and  fs-id is the FileSystemId.   Sets the requesterManaged property of the network interface to true, and the requesterId value to EFS.   Each Amazon EFS mount target has one corresponding requester-managed EC2 network interface. After the network interface is created, Amazon EFS sets the NetworkInterfaceId field in the mount target's description to the network interface ID, and the IpAddress field to its address. If network interface creation fails, the entire CreateMountTarget operation fails.    The CreateMountTarget call returns only after creating the network interface, but while the mount target state is still creating, you can check the mount target creation status by calling the DescribeMountTargets operation, which among other things returns the mount target state.  We recommend that you create a mount target in each of the Availability Zones. There are cost considerations for using a file system in an Availability Zone through a mount target created in another Availability Zone. For more information, see Amazon EFS pricing. In addition, by always using a mount target local to the instance's Availability Zone, you eliminate a partial failure scenario. If the Availability Zone in which your mount target is created goes down, then you can't access your file system through that mount target.  This operation requires permissions for the following action on the file system:    elasticfilesystem:CreateMountTarget    This operation also requires permissions for the following Amazon EC2 actions:    ec2:DescribeSubnets     ec2:DescribeNetworkInterfaces     ec2:CreateNetworkInterface
    @Sendable
    @inlinable
    public func createMountTarget(_ input: CreateMountTargetRequest, logger: Logger = AWSClient.loggingDisabled) async throws -> MountTargetDescription {
        try await self.client.execute(
            operation: "CreateMountTarget", 
            path: "/2015-02-01/mount-targets", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Creates a mount target for a file system. You can then mount the file system on EC2 instances by using the mount target. You can create one mount target in each Availability Zone in your VPC. All EC2 instances in a VPC within a given Availability Zone share a single mount target for a given file system. If you have multiple subnets in an Availability Zone, you create a mount target in one of the subnets. EC2 instances do not need to be in the same subnet as the mount target in order to access their file system. You can create only one mount target for a One Zone file system. You must create that mount target in the same Availability Zone in which the file system is located. Use the AvailabilityZoneName and AvailabiltyZoneId properties in the DescribeFileSystems response object to get this information. Use the subnetId associated with the file system's Availability Zone when creating the mount target. For more information, see Amazon EFS: How it Works.  To create a mount target for a file system, the file system's lifecycle state must be available. For more information, see DescribeFileSystems. In the request, provide the following:   The file system ID for which you are creating the mount target.   A subnet ID, which determines the following:   The VPC in which Amazon EFS creates the mount target   The Availability Zone in which Amazon EFS creates the mount target   The IP address range from which Amazon EFS selects the IP address of the mount target (if you don't specify an IP address in the request)     After creating the mount target, Amazon EFS returns a response that includes, a MountTargetId and an IpAddress. You use this IP address when mounting the file system in an EC2 instance. You can also use the mount target's DNS name when mounting the file system. The EC2 instance on which you mount the file system by using the mount target can resolve the mount target's DNS name to its IP address. For more information, see How it Works: Implementation Overview.  Note that you can create mount targets for a file system in only one VPC, and there can be only one mount target per Availability Zone. That is, if the file system already has one or more mount targets created for it, the subnet specified in the request to add another mount target must meet the following requirements:   Must belong to the same VPC as the subnets of the existing mount targets   Must not be in the same Availability Zone as any of the subnets of the existing mount targets   If the request satisfies the requirements, Amazon EFS does the following:   Creates a new mount target in the specified subnet.   Also creates a new network interface in the subnet as follows:   If the request provides an IpAddress, Amazon EFS assigns that IP address to the network interface. Otherwise, Amazon EFS assigns a free address in the subnet (in the same way that the Amazon EC2 CreateNetworkInterface call does when a request does not specify a primary private IP address).   If the request provides SecurityGroups, this network interface is associated with those security groups. Otherwise, it belongs to the default security group for the subnet's VPC.   Assigns the description Mount target fsmt-id for file system fs-id where  fsmt-id is the mount target ID, and  fs-id is the FileSystemId.   Sets the requesterManaged property of the network interface to true, and the requesterId value to EFS.   Each Amazon EFS mount target has one corresponding requester-managed EC2 network interface. After the network interface is created, Amazon EFS sets the NetworkInterfaceId field in the mount target's description to the network interface ID, and the IpAddress field to its address. If network interface creation fails, the entire CreateMountTarget operation fails.    The CreateMountTarget call returns only after creating the network interface, but while the mount target state is still creating, you can check the mount target creation status by calling the DescribeMountTargets operation, which among other things returns the mount target state.  We recommend that you create a mount target in each of the Availability Zones. There are cost considerations for using a file system in an Availability Zone through a mount target created in another Availability Zone. For more information, see Amazon EFS pricing. In addition, by always using a mount target local to the instance's Availability Zone, you eliminate a partial failure scenario. If the Availability Zone in which your mount target is created goes down, then you can't access your file system through that mount target.  This operation requires permissions for the following action on the file system:    elasticfilesystem:CreateMountTarget    This operation also requires permissions for the following Amazon EC2 actions:    ec2:DescribeSubnets     ec2:DescribeNetworkInterfaces     ec2:CreateNetworkInterface
    ///
    /// Parameters:
    ///   - fileSystemId: The ID of the file system for which to create the mount target.
    ///   - ipAddress: If the IP address type for the mount target is IPv4, then specify the IPv4 address within the address range of the specified subnet.
    ///   - ipAddressType: Specify the type of IP address of the mount target you are creating. Options are IPv4, dual stack, or IPv6. If you don’t specify an IpAddressType, then IPv4 is used.   IPV4_ONLY – Create mount target with IPv4 only subnet or dual-stack subnet.   DUAL_STACK – Create mount target with dual-stack subnet.   IPV6_ONLY – Create mount target with IPv6 only subnet.    Creating IPv6 mount target only ENI in dual-stack subnet is not supported.
    ///   - ipv6Address: If the IP address type for the mount target is IPv6, then specify the IPv6 address within the address range of the specified subnet.
    ///   - securityGroups: VPC security group IDs, of the form sg-xxxxxxxx. These must be for the same VPC as the subnet specified. The maximum number of security groups depends on account quota. For more information, see Amazon VPC Quotas in the Amazon VPC User Guide (see the Security Groups table).
    ///   - subnetId: The ID of the subnet to add the mount target in. For One Zone file systems, use the subnet that is associated with the file system's Availability Zone.
    ///   - logger: Logger use during operation
    @inlinable
    public func createMountTarget(
        fileSystemId: String,
        ipAddress: String? = nil,
        ipAddressType: IpAddressType? = nil,
        ipv6Address: String? = nil,
        securityGroups: [String]? = nil,
        subnetId: String,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> MountTargetDescription {
        let input = CreateMountTargetRequest(
            fileSystemId: fileSystemId, 
            ipAddress: ipAddress, 
            ipAddressType: ipAddressType, 
            ipv6Address: ipv6Address, 
            securityGroups: securityGroups, 
            subnetId: subnetId
        )
        return try await self.createMountTarget(input, logger: logger)
    }

    /// Creates a replication conﬁguration to either a new or existing EFS file system. For more information, see Amazon EFS replication in the Amazon EFS User Guide. The replication configuration specifies the following:    Source file system – The EFS file system that you want to replicate.     Destination file system – The destination file system to which the source file system is replicated. There can only be one destination file system in a replication configuration.   A file system can be part of only one replication configuration.   The destination parameters for the replication configuration depend on whether you are replicating to a new file system or to an existing file system, and if you are replicating across Amazon Web Services accounts. See DestinationToCreate for more information.   This operation requires permissions for the elasticfilesystem:CreateReplicationConfiguration action. Additionally, other permissions are required depending on how you are replicating file systems. For more information, see Required permissions for replication in the Amazon EFS User Guide.
    @Sendable
    @inlinable
    public func createReplicationConfiguration(_ input: CreateReplicationConfigurationRequest, logger: Logger = AWSClient.loggingDisabled) async throws -> ReplicationConfigurationDescription {
        try await self.client.execute(
            operation: "CreateReplicationConfiguration", 
            path: "/2015-02-01/file-systems/{SourceFileSystemId}/replication-configuration", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Creates a replication conﬁguration to either a new or existing EFS file system. For more information, see Amazon EFS replication in the Amazon EFS User Guide. The replication configuration specifies the following:    Source file system – The EFS file system that you want to replicate.     Destination file system – The destination file system to which the source file system is replicated. There can only be one destination file system in a replication configuration.   A file system can be part of only one replication configuration.   The destination parameters for the replication configuration depend on whether you are replicating to a new file system or to an existing file system, and if you are replicating across Amazon Web Services accounts. See DestinationToCreate for more information.   This operation requires permissions for the elasticfilesystem:CreateReplicationConfiguration action. Additionally, other permissions are required depending on how you are replicating file systems. For more information, see Required permissions for replication in the Amazon EFS User Guide.
    ///
    /// Parameters:
    ///   - destinations: An array of destination configuration objects. Only one destination configuration object is supported.
    ///   - sourceFileSystemId: Specifies the Amazon EFS file system that you want to replicate. This file system cannot already be  a source or destination file system in another replication configuration.
    ///   - logger: Logger use during operation
    @inlinable
    public func createReplicationConfiguration(
        destinations: [DestinationToCreate],
        sourceFileSystemId: String,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> ReplicationConfigurationDescription {
        let input = CreateReplicationConfigurationRequest(
            destinations: destinations, 
            sourceFileSystemId: sourceFileSystemId
        )
        return try await self.createReplicationConfiguration(input, logger: logger)
    }

    ///  DEPRECATED - CreateTags is deprecated and not maintained. To create tags for EFS resources, use the  API action.  Creates or overwrites tags associated with a file system. Each tag is a key-value pair. If a tag key specified in the request already exists on the file system, this operation overwrites its value with the value provided in the request. If you add the Name tag to your file system, Amazon EFS returns it in the response to the DescribeFileSystems operation.  This operation requires permission for the elasticfilesystem:CreateTags action.
    @available(*, deprecated, message: "Use TagResource.")
    @Sendable
    @inlinable
    public func createTags(_ input: CreateTagsRequest, logger: Logger = AWSClient.loggingDisabled) async throws {
        try await self.client.execute(
            operation: "CreateTags", 
            path: "/2015-02-01/create-tags/{FileSystemId}", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    ///  DEPRECATED - CreateTags is deprecated and not maintained. To create tags for EFS resources, use the  API action.  Creates or overwrites tags associated with a file system. Each tag is a key-value pair. If a tag key specified in the request already exists on the file system, this operation overwrites its value with the value provided in the request. If you add the Name tag to your file system, Amazon EFS returns it in the response to the DescribeFileSystems operation.  This operation requires permission for the elasticfilesystem:CreateTags action.
    ///
    /// Parameters:
    ///   - fileSystemId: The ID of the file system whose tags you want to modify (String). This operation modifies the tags only, not the file system.
    ///   - tags: An array of Tag objects to add. Each Tag object is a key-value pair.
    ///   - logger: Logger use during operation
    @available(*, deprecated, message: "Use TagResource.")
    @inlinable
    public func createTags(
        fileSystemId: String,
        tags: [Tag],
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws {
        let input = CreateTagsRequest(
            fileSystemId: fileSystemId, 
            tags: tags
        )
        return try await self.createTags(input, logger: logger)
    }

    /// Deletes the specified access point. After deletion is complete, new clients can no  longer connect to the access points. Clients connected to the access point at the time of  deletion will continue to function until they terminate their connection. This operation requires permissions for the elasticfilesystem:DeleteAccessPoint action.
    @Sendable
    @inlinable
    public func deleteAccessPoint(_ input: DeleteAccessPointRequest, logger: Logger = AWSClient.loggingDisabled) async throws {
        try await self.client.execute(
            operation: "DeleteAccessPoint", 
            path: "/2015-02-01/access-points/{AccessPointId}", 
            httpMethod: .DELETE, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Deletes the specified access point. After deletion is complete, new clients can no  longer connect to the access points. Clients connected to the access point at the time of  deletion will continue to function until they terminate their connection. This operation requires permissions for the elasticfilesystem:DeleteAccessPoint action.
    ///
    /// Parameters:
    ///   - accessPointId: The ID of the access point that you want to delete.
    ///   - logger: Logger use during operation
    @inlinable
    public func deleteAccessPoint(
        accessPointId: String,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws {
        let input = DeleteAccessPointRequest(
            accessPointId: accessPointId
        )
        return try await self.deleteAccessPoint(input, logger: logger)
    }

    /// Deletes a file system, permanently severing access to its contents. Upon return, the file system no longer exists and you can't access any contents of the deleted file system. You need to manually delete mount targets attached to a file system before you can delete an EFS file system. This step is performed for you when you use the Amazon Web Services console  to delete a file system.  You cannot delete a file system that is part of an EFS replication configuration.  You need to delete the replication configuration first.  You can't delete a file system that is in use. That is, if the file system has any mount targets, you must first delete them. For more information, see DescribeMountTargets and DeleteMountTarget.   The DeleteFileSystem call returns while the file system state is still deleting. You can check the file system deletion status by calling the DescribeFileSystems operation, which returns a list of file systems in your account. If you pass file system ID or creation token for the deleted file system, the DescribeFileSystems returns a 404 FileSystemNotFound error.  This operation requires permissions for the elasticfilesystem:DeleteFileSystem action.
    @Sendable
    @inlinable
    public func deleteFileSystem(_ input: DeleteFileSystemRequest, logger: Logger = AWSClient.loggingDisabled) async throws {
        try await self.client.execute(
            operation: "DeleteFileSystem", 
            path: "/2015-02-01/file-systems/{FileSystemId}", 
            httpMethod: .DELETE, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Deletes a file system, permanently severing access to its contents. Upon return, the file system no longer exists and you can't access any contents of the deleted file system. You need to manually delete mount targets attached to a file system before you can delete an EFS file system. This step is performed for you when you use the Amazon Web Services console  to delete a file system.  You cannot delete a file system that is part of an EFS replication configuration.  You need to delete the replication configuration first.  You can't delete a file system that is in use. That is, if the file system has any mount targets, you must first delete them. For more information, see DescribeMountTargets and DeleteMountTarget.   The DeleteFileSystem call returns while the file system state is still deleting. You can check the file system deletion status by calling the DescribeFileSystems operation, which returns a list of file systems in your account. If you pass file system ID or creation token for the deleted file system, the DescribeFileSystems returns a 404 FileSystemNotFound error.  This operation requires permissions for the elasticfilesystem:DeleteFileSystem action.
    ///
    /// Parameters:
    ///   - fileSystemId: The ID of the file system you want to delete.
    ///   - logger: Logger use during operation
    @inlinable
    public func deleteFileSystem(
        fileSystemId: String,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws {
        let input = DeleteFileSystemRequest(
            fileSystemId: fileSystemId
        )
        return try await self.deleteFileSystem(input, logger: logger)
    }

    /// Deletes the FileSystemPolicy for the specified file system.  The default FileSystemPolicy goes into effect once the existing policy is deleted.  For more information about the default file system policy, see Using Resource-based Policies with EFS. This operation requires permissions for the elasticfilesystem:DeleteFileSystemPolicy action.
    @Sendable
    @inlinable
    public func deleteFileSystemPolicy(_ input: DeleteFileSystemPolicyRequest, logger: Logger = AWSClient.loggingDisabled) async throws {
        try await self.client.execute(
            operation: "DeleteFileSystemPolicy", 
            path: "/2015-02-01/file-systems/{FileSystemId}/policy", 
            httpMethod: .DELETE, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Deletes the FileSystemPolicy for the specified file system.  The default FileSystemPolicy goes into effect once the existing policy is deleted.  For more information about the default file system policy, see Using Resource-based Policies with EFS. This operation requires permissions for the elasticfilesystem:DeleteFileSystemPolicy action.
    ///
    /// Parameters:
    ///   - fileSystemId: Specifies the EFS file system for which to delete the FileSystemPolicy.
    ///   - logger: Logger use during operation
    @inlinable
    public func deleteFileSystemPolicy(
        fileSystemId: String,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws {
        let input = DeleteFileSystemPolicyRequest(
            fileSystemId: fileSystemId
        )
        return try await self.deleteFileSystemPolicy(input, logger: logger)
    }

    /// Deletes the specified mount target. This operation forcibly breaks any mounts of the file system by using the mount target that is being deleted, which might disrupt instances or applications using those mounts. To avoid applications getting cut off abruptly, you might consider unmounting any mounts of the mount target, if feasible. The operation also deletes the associated network interface. Uncommitted writes might be lost, but breaking a mount target using this operation does not corrupt the file system itself. The file system you created remains. You can mount an EC2 instance in your VPC by using another mount target. This operation requires permissions for the following action on the file system:    elasticfilesystem:DeleteMountTarget     The DeleteMountTarget call returns while the mount target state is still deleting. You can check the mount target deletion by calling the DescribeMountTargets operation, which returns a list of mount target descriptions for the given file system.   The operation also requires permissions for the following Amazon EC2 action on the mount target's network interface:    ec2:DeleteNetworkInterface
    @Sendable
    @inlinable
    public func deleteMountTarget(_ input: DeleteMountTargetRequest, logger: Logger = AWSClient.loggingDisabled) async throws {
        try await self.client.execute(
            operation: "DeleteMountTarget", 
            path: "/2015-02-01/mount-targets/{MountTargetId}", 
            httpMethod: .DELETE, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Deletes the specified mount target. This operation forcibly breaks any mounts of the file system by using the mount target that is being deleted, which might disrupt instances or applications using those mounts. To avoid applications getting cut off abruptly, you might consider unmounting any mounts of the mount target, if feasible. The operation also deletes the associated network interface. Uncommitted writes might be lost, but breaking a mount target using this operation does not corrupt the file system itself. The file system you created remains. You can mount an EC2 instance in your VPC by using another mount target. This operation requires permissions for the following action on the file system:    elasticfilesystem:DeleteMountTarget     The DeleteMountTarget call returns while the mount target state is still deleting. You can check the mount target deletion by calling the DescribeMountTargets operation, which returns a list of mount target descriptions for the given file system.   The operation also requires permissions for the following Amazon EC2 action on the mount target's network interface:    ec2:DeleteNetworkInterface
    ///
    /// Parameters:
    ///   - mountTargetId: The ID of the mount target to delete (String).
    ///   - logger: Logger use during operation
    @inlinable
    public func deleteMountTarget(
        mountTargetId: String,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws {
        let input = DeleteMountTargetRequest(
            mountTargetId: mountTargetId
        )
        return try await self.deleteMountTarget(input, logger: logger)
    }

    /// Deletes a replication configuration. Deleting a replication configuration ends the replication process. After a replication configuration is deleted, the destination file system becomes Writeable and its replication overwrite protection is re-enabled. For more information, see Delete a replication configuration. This operation requires permissions for the elasticfilesystem:DeleteReplicationConfiguration action.
    @Sendable
    @inlinable
    public func deleteReplicationConfiguration(_ input: DeleteReplicationConfigurationRequest, logger: Logger = AWSClient.loggingDisabled) async throws {
        try await self.client.execute(
            operation: "DeleteReplicationConfiguration", 
            path: "/2015-02-01/file-systems/{SourceFileSystemId}/replication-configuration", 
            httpMethod: .DELETE, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Deletes a replication configuration. Deleting a replication configuration ends the replication process. After a replication configuration is deleted, the destination file system becomes Writeable and its replication overwrite protection is re-enabled. For more information, see Delete a replication configuration. This operation requires permissions for the elasticfilesystem:DeleteReplicationConfiguration action.
    ///
    /// Parameters:
    ///   - deletionMode: When replicating across Amazon Web Services accounts or across Amazon Web Services Regions,  Amazon EFS deletes the replication configuration from both the source  and destination account or Region (ALL_CONFIGURATIONS) by default.  If there's a configuration or permissions issue that prevents Amazon EFS from deleting the  replication configuration from both sides, you can use the LOCAL_CONFIGURATION_ONLY mode to delete the replication configuration from only the local side (the account or Region from which the delete is performed).   Only use the LOCAL_CONFIGURATION_ONLY mode in the case that Amazon EFS is unable to delete the replication configuration in both the source and destination account or Region.  Deleting the local configuration  leaves the configuration in the other account or Region unrecoverable. Additionally, do not use this mode for same-account, same-region replication as doing so results in a  BadRequest exception error.
    ///   - sourceFileSystemId: The ID of the source file system in the replication configuration.
    ///   - logger: Logger use during operation
    @inlinable
    public func deleteReplicationConfiguration(
        deletionMode: DeletionMode? = nil,
        sourceFileSystemId: String,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws {
        let input = DeleteReplicationConfigurationRequest(
            deletionMode: deletionMode, 
            sourceFileSystemId: sourceFileSystemId
        )
        return try await self.deleteReplicationConfiguration(input, logger: logger)
    }

    ///  DEPRECATED - DeleteTags is deprecated and not maintained. To remove tags from EFS resources, use the  API action.  Deletes the specified tags from a file system. If the DeleteTags request includes a tag key that doesn't exist, Amazon EFS ignores it and doesn't cause an error. For more information about tags and related restrictions, see Tag restrictions in the Billing and Cost Management User Guide. This operation requires permissions for the elasticfilesystem:DeleteTags action.
    @available(*, deprecated, message: "Use UntagResource.")
    @Sendable
    @inlinable
    public func deleteTags(_ input: DeleteTagsRequest, logger: Logger = AWSClient.loggingDisabled) async throws {
        try await self.client.execute(
            operation: "DeleteTags", 
            path: "/2015-02-01/delete-tags/{FileSystemId}", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    ///  DEPRECATED - DeleteTags is deprecated and not maintained. To remove tags from EFS resources, use the  API action.  Deletes the specified tags from a file system. If the DeleteTags request includes a tag key that doesn't exist, Amazon EFS ignores it and doesn't cause an error. For more information about tags and related restrictions, see Tag restrictions in the Billing and Cost Management User Guide. This operation requires permissions for the elasticfilesystem:DeleteTags action.
    ///
    /// Parameters:
    ///   - fileSystemId: The ID of the file system whose tags you want to delete (String).
    ///   - tagKeys: A list of tag keys to delete.
    ///   - logger: Logger use during operation
    @available(*, deprecated, message: "Use UntagResource.")
    @inlinable
    public func deleteTags(
        fileSystemId: String,
        tagKeys: [String],
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws {
        let input = DeleteTagsRequest(
            fileSystemId: fileSystemId, 
            tagKeys: tagKeys
        )
        return try await self.deleteTags(input, logger: logger)
    }

    /// Returns the description of a specific Amazon EFS access point if the AccessPointId is provided. If you provide an EFS FileSystemId, it returns descriptions of all access points for that file system. You can provide either an AccessPointId or a FileSystemId in the request, but not both.  This operation requires permissions for the elasticfilesystem:DescribeAccessPoints action.
    @Sendable
    @inlinable
    public func describeAccessPoints(_ input: DescribeAccessPointsRequest, logger: Logger = AWSClient.loggingDisabled) async throws -> DescribeAccessPointsResponse {
        try await self.client.execute(
            operation: "DescribeAccessPoints", 
            path: "/2015-02-01/access-points", 
            httpMethod: .GET, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Returns the description of a specific Amazon EFS access point if the AccessPointId is provided. If you provide an EFS FileSystemId, it returns descriptions of all access points for that file system. You can provide either an AccessPointId or a FileSystemId in the request, but not both.  This operation requires permissions for the elasticfilesystem:DescribeAccessPoints action.
    ///
    /// Parameters:
    ///   - accessPointId: (Optional) Specifies an EFS access point to describe in the response; mutually exclusive with FileSystemId.
    ///   - fileSystemId: (Optional) If you provide a FileSystemId, EFS returns all access points for that file system; mutually exclusive with AccessPointId.
    ///   - maxResults: (Optional) When retrieving all access points for a file system, you can optionally specify the MaxItems parameter to limit the number of objects returned in a response.   The default value is 100.
    ///   - nextToken:  NextToken is present if the response is paginated. You can use  NextMarker in the subsequent request to fetch the next page of access point descriptions.
    ///   - logger: Logger use during operation
    @inlinable
    public func describeAccessPoints(
        accessPointId: String? = nil,
        fileSystemId: String? = nil,
        maxResults: Int? = nil,
        nextToken: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> DescribeAccessPointsResponse {
        let input = DescribeAccessPointsRequest(
            accessPointId: accessPointId, 
            fileSystemId: fileSystemId, 
            maxResults: maxResults, 
            nextToken: nextToken
        )
        return try await self.describeAccessPoints(input, logger: logger)
    }

    /// Returns the account preferences settings for the Amazon Web Services account associated with the user making the request, in the current Amazon Web Services Region.
    @Sendable
    @inlinable
    public func describeAccountPreferences(_ input: DescribeAccountPreferencesRequest, logger: Logger = AWSClient.loggingDisabled) async throws -> DescribeAccountPreferencesResponse {
        try await self.client.execute(
            operation: "DescribeAccountPreferences", 
            path: "/2015-02-01/account-preferences", 
            httpMethod: .GET, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Returns the account preferences settings for the Amazon Web Services account associated with the user making the request, in the current Amazon Web Services Region.
    ///
    /// Parameters:
    ///   - maxResults: (Optional) When retrieving account preferences, you can optionally specify the MaxItems parameter to limit the number of objects returned in a response.   The default value is 100.
    ///   - nextToken: (Optional) You can use NextToken in a subsequent request to fetch the next page of  Amazon Web Services account preferences if the response payload was paginated.
    ///   - logger: Logger use during operation
    @inlinable
    public func describeAccountPreferences(
        maxResults: Int? = nil,
        nextToken: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> DescribeAccountPreferencesResponse {
        let input = DescribeAccountPreferencesRequest(
            maxResults: maxResults, 
            nextToken: nextToken
        )
        return try await self.describeAccountPreferences(input, logger: logger)
    }

    /// Returns the backup policy for the specified EFS file system.
    @Sendable
    @inlinable
    public func describeBackupPolicy(_ input: DescribeBackupPolicyRequest, logger: Logger = AWSClient.loggingDisabled) async throws -> BackupPolicyDescription {
        try await self.client.execute(
            operation: "DescribeBackupPolicy", 
            path: "/2015-02-01/file-systems/{FileSystemId}/backup-policy", 
            httpMethod: .GET, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Returns the backup policy for the specified EFS file system.
    ///
    /// Parameters:
    ///   - fileSystemId: Specifies which EFS file system for which to retrieve the BackupPolicy.
    ///   - logger: Logger use during operation
    @inlinable
    public func describeBackupPolicy(
        fileSystemId: String,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> BackupPolicyDescription {
        let input = DescribeBackupPolicyRequest(
            fileSystemId: fileSystemId
        )
        return try await self.describeBackupPolicy(input, logger: logger)
    }

    /// Returns the FileSystemPolicy for the specified EFS file system. This operation requires permissions for the elasticfilesystem:DescribeFileSystemPolicy action.
    @Sendable
    @inlinable
    public func describeFileSystemPolicy(_ input: DescribeFileSystemPolicyRequest, logger: Logger = AWSClient.loggingDisabled) async throws -> FileSystemPolicyDescription {
        try await self.client.execute(
            operation: "DescribeFileSystemPolicy", 
            path: "/2015-02-01/file-systems/{FileSystemId}/policy", 
            httpMethod: .GET, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Returns the FileSystemPolicy for the specified EFS file system. This operation requires permissions for the elasticfilesystem:DescribeFileSystemPolicy action.
    ///
    /// Parameters:
    ///   - fileSystemId: Specifies which EFS file system to retrieve the FileSystemPolicy for.
    ///   - logger: Logger use during operation
    @inlinable
    public func describeFileSystemPolicy(
        fileSystemId: String,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> FileSystemPolicyDescription {
        let input = DescribeFileSystemPolicyRequest(
            fileSystemId: fileSystemId
        )
        return try await self.describeFileSystemPolicy(input, logger: logger)
    }

    /// Returns the description of a specific Amazon EFS file system if either the file system CreationToken or the FileSystemId is provided. Otherwise, it returns descriptions of all file systems owned by the caller's Amazon Web Services account in the  Amazon Web Services Region of the endpoint that you're calling. When retrieving all file system descriptions, you can optionally specify the MaxItems parameter to limit the number of descriptions in a response. This number is automatically set to 100. If more file system descriptions remain, Amazon EFS returns a NextMarker, an opaque token, in the response. In this case, you should send a subsequent request with the Marker request parameter set to the value of NextMarker.  To retrieve a list of your file system descriptions, this operation is used in an iterative process, where DescribeFileSystems is called first without the Marker and then the operation continues to call it with the Marker parameter set to the value of the NextMarker from the previous response until the response has no NextMarker.  The order of file systems returned in the response of one DescribeFileSystems call and the order of file systems returned across the responses of a multi-call iteration is unspecified.  This operation requires permissions for the elasticfilesystem:DescribeFileSystems action.
    @Sendable
    @inlinable
    public func describeFileSystems(_ input: DescribeFileSystemsRequest, logger: Logger = AWSClient.loggingDisabled) async throws -> DescribeFileSystemsResponse {
        try await self.client.execute(
            operation: "DescribeFileSystems", 
            path: "/2015-02-01/file-systems", 
            httpMethod: .GET, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Returns the description of a specific Amazon EFS file system if either the file system CreationToken or the FileSystemId is provided. Otherwise, it returns descriptions of all file systems owned by the caller's Amazon Web Services account in the  Amazon Web Services Region of the endpoint that you're calling. When retrieving all file system descriptions, you can optionally specify the MaxItems parameter to limit the number of descriptions in a response. This number is automatically set to 100. If more file system descriptions remain, Amazon EFS returns a NextMarker, an opaque token, in the response. In this case, you should send a subsequent request with the Marker request parameter set to the value of NextMarker.  To retrieve a list of your file system descriptions, this operation is used in an iterative process, where DescribeFileSystems is called first without the Marker and then the operation continues to call it with the Marker parameter set to the value of the NextMarker from the previous response until the response has no NextMarker.  The order of file systems returned in the response of one DescribeFileSystems call and the order of file systems returned across the responses of a multi-call iteration is unspecified.  This operation requires permissions for the elasticfilesystem:DescribeFileSystems action.
    ///
    /// Parameters:
    ///   - creationToken: (Optional) Restricts the list to the file system with this creation token (String). You specify a creation token when you create an Amazon EFS file system.
    ///   - fileSystemId: (Optional) ID of the file system whose description you want to retrieve (String).
    ///   - marker: (Optional) Opaque pagination token returned from a previous DescribeFileSystems operation (String). If present, specifies to continue the list from where the returning call had left off.
    ///   - maxItems: (Optional) Specifies the maximum number of file systems to return in the response (integer). This number is automatically set to 100. The response is paginated at 100 per page if you have more than 100 file systems.
    ///   - logger: Logger use during operation
    @inlinable
    public func describeFileSystems(
        creationToken: String? = nil,
        fileSystemId: String? = nil,
        marker: String? = nil,
        maxItems: Int? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> DescribeFileSystemsResponse {
        let input = DescribeFileSystemsRequest(
            creationToken: creationToken, 
            fileSystemId: fileSystemId, 
            marker: marker, 
            maxItems: maxItems
        )
        return try await self.describeFileSystems(input, logger: logger)
    }

    /// Returns the current LifecycleConfiguration object for the specified EFS file system. Lifecycle management uses the LifecycleConfiguration object to identify when to move files between storage classes. For a file system without a LifecycleConfiguration object, the call returns an empty array in the response. This operation requires permissions for the elasticfilesystem:DescribeLifecycleConfiguration operation.
    @Sendable
    @inlinable
    public func describeLifecycleConfiguration(_ input: DescribeLifecycleConfigurationRequest, logger: Logger = AWSClient.loggingDisabled) async throws -> LifecycleConfigurationDescription {
        try await self.client.execute(
            operation: "DescribeLifecycleConfiguration", 
            path: "/2015-02-01/file-systems/{FileSystemId}/lifecycle-configuration", 
            httpMethod: .GET, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Returns the current LifecycleConfiguration object for the specified EFS file system. Lifecycle management uses the LifecycleConfiguration object to identify when to move files between storage classes. For a file system without a LifecycleConfiguration object, the call returns an empty array in the response. This operation requires permissions for the elasticfilesystem:DescribeLifecycleConfiguration operation.
    ///
    /// Parameters:
    ///   - fileSystemId: The ID of the file system whose LifecycleConfiguration object you want to retrieve (String).
    ///   - logger: Logger use during operation
    @inlinable
    public func describeLifecycleConfiguration(
        fileSystemId: String,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> LifecycleConfigurationDescription {
        let input = DescribeLifecycleConfigurationRequest(
            fileSystemId: fileSystemId
        )
        return try await self.describeLifecycleConfiguration(input, logger: logger)
    }

    /// Returns the security groups currently in effect for a mount target. This operation requires that the network interface of the mount target has been created and the lifecycle state of the mount target is not deleted. This operation requires permissions for the following actions:    elasticfilesystem:DescribeMountTargetSecurityGroups action on the mount target's file system.     ec2:DescribeNetworkInterfaceAttribute action on the mount target's network interface.
    @Sendable
    @inlinable
    public func describeMountTargetSecurityGroups(_ input: DescribeMountTargetSecurityGroupsRequest, logger: Logger = AWSClient.loggingDisabled) async throws -> DescribeMountTargetSecurityGroupsResponse {
        try await self.client.execute(
            operation: "DescribeMountTargetSecurityGroups", 
            path: "/2015-02-01/mount-targets/{MountTargetId}/security-groups", 
            httpMethod: .GET, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Returns the security groups currently in effect for a mount target. This operation requires that the network interface of the mount target has been created and the lifecycle state of the mount target is not deleted. This operation requires permissions for the following actions:    elasticfilesystem:DescribeMountTargetSecurityGroups action on the mount target's file system.     ec2:DescribeNetworkInterfaceAttribute action on the mount target's network interface.
    ///
    /// Parameters:
    ///   - mountTargetId: The ID of the mount target whose security groups you want to retrieve.
    ///   - logger: Logger use during operation
    @inlinable
    public func describeMountTargetSecurityGroups(
        mountTargetId: String,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> DescribeMountTargetSecurityGroupsResponse {
        let input = DescribeMountTargetSecurityGroupsRequest(
            mountTargetId: mountTargetId
        )
        return try await self.describeMountTargetSecurityGroups(input, logger: logger)
    }

    /// Returns the descriptions of all the current mount targets, or a specific mount target, for a file system. When requesting all of the current mount targets, the order of mount targets returned in the response is unspecified. This operation requires permissions for the elasticfilesystem:DescribeMountTargets action, on either the file system ID that you specify in FileSystemId, or on the file system of the mount target that you specify in MountTargetId.
    @Sendable
    @inlinable
    public func describeMountTargets(_ input: DescribeMountTargetsRequest, logger: Logger = AWSClient.loggingDisabled) async throws -> DescribeMountTargetsResponse {
        try await self.client.execute(
            operation: "DescribeMountTargets", 
            path: "/2015-02-01/mount-targets", 
            httpMethod: .GET, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Returns the descriptions of all the current mount targets, or a specific mount target, for a file system. When requesting all of the current mount targets, the order of mount targets returned in the response is unspecified. This operation requires permissions for the elasticfilesystem:DescribeMountTargets action, on either the file system ID that you specify in FileSystemId, or on the file system of the mount target that you specify in MountTargetId.
    ///
    /// Parameters:
    ///   - accessPointId: (Optional) The ID of the access point whose mount targets that you want to list. It must be included in your request if a FileSystemId or MountTargetId is not included in your request. Accepts either an access point ID or ARN as input.
    ///   - fileSystemId: (Optional) ID of the file system whose mount targets you want to list (String). It must be included in your request if an AccessPointId or MountTargetId is not included. Accepts either a file system ID or ARN as input.
    ///   - marker: (Optional) Opaque pagination token returned from a previous DescribeMountTargets operation (String). If present, it specifies to continue the list from where the previous returning call left off.
    ///   - maxItems: (Optional) Maximum number of mount targets to return in the response. Currently, this number is automatically set to 10, and other values are ignored. The response is paginated at 100 per page if you have more than 100 mount targets.
    ///   - mountTargetId: (Optional) ID of the mount target that you want to have described (String). It must be included in your request if FileSystemId is not included. Accepts either a mount target ID or ARN as input.
    ///   - logger: Logger use during operation
    @inlinable
    public func describeMountTargets(
        accessPointId: String? = nil,
        fileSystemId: String? = nil,
        marker: String? = nil,
        maxItems: Int? = nil,
        mountTargetId: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> DescribeMountTargetsResponse {
        let input = DescribeMountTargetsRequest(
            accessPointId: accessPointId, 
            fileSystemId: fileSystemId, 
            marker: marker, 
            maxItems: maxItems, 
            mountTargetId: mountTargetId
        )
        return try await self.describeMountTargets(input, logger: logger)
    }

    /// Retrieves the replication configuration for a specific file system. If a file system is not specified, all of the replication configurations for the Amazon Web Services account in an Amazon Web Services Region are retrieved.
    @Sendable
    @inlinable
    public func describeReplicationConfigurations(_ input: DescribeReplicationConfigurationsRequest, logger: Logger = AWSClient.loggingDisabled) async throws -> DescribeReplicationConfigurationsResponse {
        try await self.client.execute(
            operation: "DescribeReplicationConfigurations", 
            path: "/2015-02-01/file-systems/replication-configurations", 
            httpMethod: .GET, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Retrieves the replication configuration for a specific file system. If a file system is not specified, all of the replication configurations for the Amazon Web Services account in an Amazon Web Services Region are retrieved.
    ///
    /// Parameters:
    ///   - fileSystemId: You can retrieve the replication configuration for a specific file system by providing its file system ID. For cross-account,cross-region replication, an account can only describe the replication configuration for a file system in its own Region.
    ///   - maxResults: (Optional) To limit the number of objects returned in a response, you can specify the MaxItems parameter. The default value is 100.
    ///   - nextToken:  NextToken is present if the response is paginated. You can use NextToken in a subsequent request to fetch the next page of output.
    ///   - logger: Logger use during operation
    @inlinable
    public func describeReplicationConfigurations(
        fileSystemId: String? = nil,
        maxResults: Int? = nil,
        nextToken: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> DescribeReplicationConfigurationsResponse {
        let input = DescribeReplicationConfigurationsRequest(
            fileSystemId: fileSystemId, 
            maxResults: maxResults, 
            nextToken: nextToken
        )
        return try await self.describeReplicationConfigurations(input, logger: logger)
    }

    ///  DEPRECATED - The DescribeTags action is deprecated and not maintained. To view tags associated with EFS resources, use the ListTagsForResource API action.  Returns the tags associated with a file system. The order of tags returned in the response of one DescribeTags call and the order of tags returned across the responses of a multiple-call iteration (when using pagination) is unspecified.  This operation requires permissions for the elasticfilesystem:DescribeTags action.
    @available(*, deprecated, message: "Use ListTagsForResource.")
    @Sendable
    @inlinable
    public func describeTags(_ input: DescribeTagsRequest, logger: Logger = AWSClient.loggingDisabled) async throws -> DescribeTagsResponse {
        try await self.client.execute(
            operation: "DescribeTags", 
            path: "/2015-02-01/tags/{FileSystemId}", 
            httpMethod: .GET, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    ///  DEPRECATED - The DescribeTags action is deprecated and not maintained. To view tags associated with EFS resources, use the ListTagsForResource API action.  Returns the tags associated with a file system. The order of tags returned in the response of one DescribeTags call and the order of tags returned across the responses of a multiple-call iteration (when using pagination) is unspecified.  This operation requires permissions for the elasticfilesystem:DescribeTags action.
    ///
    /// Parameters:
    ///   - fileSystemId: The ID of the file system whose tag set you want to retrieve.
    ///   - marker: (Optional) An opaque pagination token returned from a previous DescribeTags operation (String). If present, it specifies to continue the list from where the previous call left off.
    ///   - maxItems: (Optional) The maximum number of file system tags to return in the response. Currently, this number is automatically set to 100, and other values are ignored. The response is paginated at 100 per page if you have more than 100 tags.
    ///   - logger: Logger use during operation
    @available(*, deprecated, message: "Use ListTagsForResource.")
    @inlinable
    public func describeTags(
        fileSystemId: String,
        marker: String? = nil,
        maxItems: Int? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> DescribeTagsResponse {
        let input = DescribeTagsRequest(
            fileSystemId: fileSystemId, 
            marker: marker, 
            maxItems: maxItems
        )
        return try await self.describeTags(input, logger: logger)
    }

    /// Lists all tags for a top-level EFS resource. You must provide the ID of the resource that you want to retrieve the tags for. This operation requires permissions for the elasticfilesystem:DescribeAccessPoints action.
    @Sendable
    @inlinable
    public func listTagsForResource(_ input: ListTagsForResourceRequest, logger: Logger = AWSClient.loggingDisabled) async throws -> ListTagsForResourceResponse {
        try await self.client.execute(
            operation: "ListTagsForResource", 
            path: "/2015-02-01/resource-tags/{ResourceId}", 
            httpMethod: .GET, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Lists all tags for a top-level EFS resource. You must provide the ID of the resource that you want to retrieve the tags for. This operation requires permissions for the elasticfilesystem:DescribeAccessPoints action.
    ///
    /// Parameters:
    ///   - maxResults: (Optional) Specifies the maximum number of tag objects to return in the response. The default value is 100.
    ///   - nextToken: (Optional) You can use NextToken in a subsequent request to fetch the next page of access point descriptions if the response payload was paginated.
    ///   - resourceId: Specifies the EFS resource you want to retrieve tags for. You can retrieve tags for EFS file systems and access points using this API endpoint.
    ///   - logger: Logger use during operation
    @inlinable
    public func listTagsForResource(
        maxResults: Int? = nil,
        nextToken: String? = nil,
        resourceId: String,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> ListTagsForResourceResponse {
        let input = ListTagsForResourceRequest(
            maxResults: maxResults, 
            nextToken: nextToken, 
            resourceId: resourceId
        )
        return try await self.listTagsForResource(input, logger: logger)
    }

    /// Modifies the set of security groups in effect for a mount target. When you create a mount target, Amazon EFS also creates a new network interface. For more information, see CreateMountTarget. This operation replaces the security groups in effect for the network interface associated with a mount target, with the SecurityGroups provided in the request. This operation requires that the network interface of the mount target has been created and the lifecycle state of the mount target is not deleted.  The operation requires permissions for the following actions:    elasticfilesystem:ModifyMountTargetSecurityGroups action on the mount target's file system.     ec2:ModifyNetworkInterfaceAttribute action on the mount target's network interface.
    @Sendable
    @inlinable
    public func modifyMountTargetSecurityGroups(_ input: ModifyMountTargetSecurityGroupsRequest, logger: Logger = AWSClient.loggingDisabled) async throws {
        try await self.client.execute(
            operation: "ModifyMountTargetSecurityGroups", 
            path: "/2015-02-01/mount-targets/{MountTargetId}/security-groups", 
            httpMethod: .PUT, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Modifies the set of security groups in effect for a mount target. When you create a mount target, Amazon EFS also creates a new network interface. For more information, see CreateMountTarget. This operation replaces the security groups in effect for the network interface associated with a mount target, with the SecurityGroups provided in the request. This operation requires that the network interface of the mount target has been created and the lifecycle state of the mount target is not deleted.  The operation requires permissions for the following actions:    elasticfilesystem:ModifyMountTargetSecurityGroups action on the mount target's file system.     ec2:ModifyNetworkInterfaceAttribute action on the mount target's network interface.
    ///
    /// Parameters:
    ///   - mountTargetId: The ID of the mount target whose security groups you want to modify.
    ///   - securityGroups: An array of VPC security group IDs.
    ///   - logger: Logger use during operation
    @inlinable
    public func modifyMountTargetSecurityGroups(
        mountTargetId: String,
        securityGroups: [String]? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws {
        let input = ModifyMountTargetSecurityGroupsRequest(
            mountTargetId: mountTargetId, 
            securityGroups: securityGroups
        )
        return try await self.modifyMountTargetSecurityGroups(input, logger: logger)
    }

    /// Use this operation to set the account preference in the current Amazon Web Services Region to use long 17 character (63 bit) or short 8 character (32 bit) resource IDs for new EFS file system and mount target resources. All existing resource IDs are not affected by any changes you make. You can set the ID preference during the opt-in period as EFS transitions to long resource IDs. For more information, see Managing Amazon EFS resource IDs.  Starting in October, 2021, you will receive an error if you try to set the account preference to use the short 8 character format resource ID. Contact Amazon Web Services support if you receive an error and must use short IDs for file system and mount target resources.
    @Sendable
    @inlinable
    public func putAccountPreferences(_ input: PutAccountPreferencesRequest, logger: Logger = AWSClient.loggingDisabled) async throws -> PutAccountPreferencesResponse {
        try await self.client.execute(
            operation: "PutAccountPreferences", 
            path: "/2015-02-01/account-preferences", 
            httpMethod: .PUT, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Use this operation to set the account preference in the current Amazon Web Services Region to use long 17 character (63 bit) or short 8 character (32 bit) resource IDs for new EFS file system and mount target resources. All existing resource IDs are not affected by any changes you make. You can set the ID preference during the opt-in period as EFS transitions to long resource IDs. For more information, see Managing Amazon EFS resource IDs.  Starting in October, 2021, you will receive an error if you try to set the account preference to use the short 8 character format resource ID. Contact Amazon Web Services support if you receive an error and must use short IDs for file system and mount target resources.
    ///
    /// Parameters:
    ///   - resourceIdType: Specifies the EFS resource ID preference to set for the user's Amazon Web Services account, in the current Amazon Web Services Region, either LONG_ID (17 characters), or SHORT_ID (8 characters).  Starting in October, 2021, you will receive an error when setting the account preference to SHORT_ID. Contact Amazon Web Services support if you receive an error and must use short IDs for file system and mount target resources.
    ///   - logger: Logger use during operation
    @inlinable
    public func putAccountPreferences(
        resourceIdType: ResourceIdType,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> PutAccountPreferencesResponse {
        let input = PutAccountPreferencesRequest(
            resourceIdType: resourceIdType
        )
        return try await self.putAccountPreferences(input, logger: logger)
    }

    /// Updates the file system's backup policy. Use this action to start or stop automatic backups of the file system.
    @Sendable
    @inlinable
    public func putBackupPolicy(_ input: PutBackupPolicyRequest, logger: Logger = AWSClient.loggingDisabled) async throws -> BackupPolicyDescription {
        try await self.client.execute(
            operation: "PutBackupPolicy", 
            path: "/2015-02-01/file-systems/{FileSystemId}/backup-policy", 
            httpMethod: .PUT, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Updates the file system's backup policy. Use this action to start or stop automatic backups of the file system.
    ///
    /// Parameters:
    ///   - backupPolicy: The backup policy included in the PutBackupPolicy request.
    ///   - fileSystemId: Specifies which EFS file system to update the backup policy for.
    ///   - logger: Logger use during operation
    @inlinable
    public func putBackupPolicy(
        backupPolicy: BackupPolicy,
        fileSystemId: String,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> BackupPolicyDescription {
        let input = PutBackupPolicyRequest(
            backupPolicy: backupPolicy, 
            fileSystemId: fileSystemId
        )
        return try await self.putBackupPolicy(input, logger: logger)
    }

    /// Applies an Amazon EFS FileSystemPolicy to an Amazon EFS file system. A file system policy is an IAM resource-based policy and can contain multiple policy statements. A file system always has exactly one file system policy, which can be the default policy or an explicit policy set or updated using this API operation. EFS file system policies have a 20,000 character limit. When an explicit policy is set, it overrides the default policy. For more information about the default file system policy, see  Default EFS file system policy.   EFS file system policies have a 20,000 character limit.  This operation requires permissions for the elasticfilesystem:PutFileSystemPolicy action.
    @Sendable
    @inlinable
    public func putFileSystemPolicy(_ input: PutFileSystemPolicyRequest, logger: Logger = AWSClient.loggingDisabled) async throws -> FileSystemPolicyDescription {
        try await self.client.execute(
            operation: "PutFileSystemPolicy", 
            path: "/2015-02-01/file-systems/{FileSystemId}/policy", 
            httpMethod: .PUT, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Applies an Amazon EFS FileSystemPolicy to an Amazon EFS file system. A file system policy is an IAM resource-based policy and can contain multiple policy statements. A file system always has exactly one file system policy, which can be the default policy or an explicit policy set or updated using this API operation. EFS file system policies have a 20,000 character limit. When an explicit policy is set, it overrides the default policy. For more information about the default file system policy, see  Default EFS file system policy.   EFS file system policies have a 20,000 character limit.  This operation requires permissions for the elasticfilesystem:PutFileSystemPolicy action.
    ///
    /// Parameters:
    ///   - bypassPolicyLockoutSafetyCheck: (Optional) A boolean that specifies whether or not to bypass the FileSystemPolicy lockout safety check. The lockout safety check  determines whether the policy in the request will lock out, or prevent, the IAM principal that is making the request from making future PutFileSystemPolicy requests on this file system. Set BypassPolicyLockoutSafetyCheck to True only when you intend to prevent  the IAM principal that is making the request from making subsequent PutFileSystemPolicy requests on this file system.  The default value is False.
    ///   - fileSystemId: The ID of the EFS file system that you want to create or update the FileSystemPolicy for.
    ///   - policy: The FileSystemPolicy that you're creating. Accepts a JSON formatted policy definition. EFS file system policies have a 20,000 character limit. To find out more about the elements that make up a file system policy, see Resource-based policies within Amazon EFS.
    ///   - logger: Logger use during operation
    @inlinable
    public func putFileSystemPolicy(
        bypassPolicyLockoutSafetyCheck: Bool? = nil,
        fileSystemId: String,
        policy: String,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> FileSystemPolicyDescription {
        let input = PutFileSystemPolicyRequest(
            bypassPolicyLockoutSafetyCheck: bypassPolicyLockoutSafetyCheck, 
            fileSystemId: fileSystemId, 
            policy: policy
        )
        return try await self.putFileSystemPolicy(input, logger: logger)
    }

    /// Use this action to manage storage for your file system. A LifecycleConfiguration consists of one or more LifecyclePolicy objects that define the following:     TransitionToIA – When to move files in the file system from primary storage (Standard storage class) into the Infrequent Access  (IA) storage.     TransitionToArchive – When to move files in the file system from their current storage class (either IA or Standard storage) into the  Archive storage. File systems cannot transition into Archive storage before transitioning into IA  storage. Therefore,   TransitionToArchive must either not be set or must be later than TransitionToIA.  The Archive storage class is available only for file systems that use the Elastic throughput mode
    /// and the General Purpose performance mode.         TransitionToPrimaryStorageClass – Whether to move files in the file system back to primary storage (Standard storage class) after they are accessed in IA or Archive storage.   For more information, see  Managing file system storage. Each Amazon EFS file system supports one lifecycle configuration, which applies to all files in the file system. If a LifecycleConfiguration object already exists for the specified file system, a PutLifecycleConfiguration call modifies the existing configuration. A PutLifecycleConfiguration call with an empty LifecyclePolicies array in the request body deletes any existing LifecycleConfiguration. In the request, specify the following:    The ID for the file system for which you are enabling, disabling, or modifying lifecycle management.   A LifecyclePolicies array of LifecyclePolicy objects that define when to move files to IA storage, to Archive storage, and back to primary storage.  Amazon EFS requires that each LifecyclePolicy  object have only have a single transition, so the LifecyclePolicies array needs to be structured with separate  LifecyclePolicy objects. See the example requests in the following section for more information.    This operation requires permissions for the elasticfilesystem:PutLifecycleConfiguration operation. To apply a LifecycleConfiguration object to an encrypted file system, you need the same Key Management Service permissions as when you created the encrypted file system.
    @Sendable
    @inlinable
    public func putLifecycleConfiguration(_ input: PutLifecycleConfigurationRequest, logger: Logger = AWSClient.loggingDisabled) async throws -> LifecycleConfigurationDescription {
        try await self.client.execute(
            operation: "PutLifecycleConfiguration", 
            path: "/2015-02-01/file-systems/{FileSystemId}/lifecycle-configuration", 
            httpMethod: .PUT, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Use this action to manage storage for your file system. A LifecycleConfiguration consists of one or more LifecyclePolicy objects that define the following:     TransitionToIA – When to move files in the file system from primary storage (Standard storage class) into the Infrequent Access  (IA) storage.     TransitionToArchive – When to move files in the file system from their current storage class (either IA or Standard storage) into the  Archive storage. File systems cannot transition into Archive storage before transitioning into IA  storage. Therefore,   TransitionToArchive must either not be set or must be later than TransitionToIA.  The Archive storage class is available only for file systems that use the Elastic throughput mode
    /// and the General Purpose performance mode.         TransitionToPrimaryStorageClass – Whether to move files in the file system back to primary storage (Standard storage class) after they are accessed in IA or Archive storage.   For more information, see  Managing file system storage. Each Amazon EFS file system supports one lifecycle configuration, which applies to all files in the file system. If a LifecycleConfiguration object already exists for the specified file system, a PutLifecycleConfiguration call modifies the existing configuration. A PutLifecycleConfiguration call with an empty LifecyclePolicies array in the request body deletes any existing LifecycleConfiguration. In the request, specify the following:    The ID for the file system for which you are enabling, disabling, or modifying lifecycle management.   A LifecyclePolicies array of LifecyclePolicy objects that define when to move files to IA storage, to Archive storage, and back to primary storage.  Amazon EFS requires that each LifecyclePolicy  object have only have a single transition, so the LifecyclePolicies array needs to be structured with separate  LifecyclePolicy objects. See the example requests in the following section for more information.    This operation requires permissions for the elasticfilesystem:PutLifecycleConfiguration operation. To apply a LifecycleConfiguration object to an encrypted file system, you need the same Key Management Service permissions as when you created the encrypted file system.
    ///
    /// Parameters:
    ///   - fileSystemId: The ID of the file system for which you are creating the LifecycleConfiguration object (String).
    ///   - lifecyclePolicies: An array of LifecyclePolicy objects that define the file system's LifecycleConfiguration object. A LifecycleConfiguration object informs lifecycle management of the following:     TransitionToIA –  When to move files in the file system from primary storage (Standard storage class) into the Infrequent Access  (IA) storage.     TransitionToArchive – When to move files in the file system from their current storage class (either IA or Standard storage) into the  Archive storage. File systems cannot transition into Archive storage before transitioning into IA  storage. Therefore,   TransitionToArchive must either not be set or must be later than TransitionToIA.  The Archive storage class is available only for file systems that use the Elastic throughput mode
    ///   - logger: Logger use during operation
    @inlinable
    public func putLifecycleConfiguration(
        fileSystemId: String,
        lifecyclePolicies: [LifecyclePolicy],
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> LifecycleConfigurationDescription {
        let input = PutLifecycleConfigurationRequest(
            fileSystemId: fileSystemId, 
            lifecyclePolicies: lifecyclePolicies
        )
        return try await self.putLifecycleConfiguration(input, logger: logger)
    }

    /// Creates a tag for an EFS resource. You can create tags for EFS file systems and access points using this API operation. This operation requires permissions for the elasticfilesystem:TagResource action.
    @Sendable
    @inlinable
    public func tagResource(_ input: TagResourceRequest, logger: Logger = AWSClient.loggingDisabled) async throws {
        try await self.client.execute(
            operation: "TagResource", 
            path: "/2015-02-01/resource-tags/{ResourceId}", 
            httpMethod: .POST, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Creates a tag for an EFS resource. You can create tags for EFS file systems and access points using this API operation. This operation requires permissions for the elasticfilesystem:TagResource action.
    ///
    /// Parameters:
    ///   - resourceId: The ID specifying the EFS resource that you want to create a tag for.
    ///   - tags: An array of Tag objects to add. Each Tag object is a key-value pair.
    ///   - logger: Logger use during operation
    @inlinable
    public func tagResource(
        resourceId: String,
        tags: [Tag],
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws {
        let input = TagResourceRequest(
            resourceId: resourceId, 
            tags: tags
        )
        return try await self.tagResource(input, logger: logger)
    }

    /// Removes tags from an EFS resource. You can remove tags from EFS file systems and access points using this API operation. This operation requires permissions for the elasticfilesystem:UntagResource action.
    @Sendable
    @inlinable
    public func untagResource(_ input: UntagResourceRequest, logger: Logger = AWSClient.loggingDisabled) async throws {
        try await self.client.execute(
            operation: "UntagResource", 
            path: "/2015-02-01/resource-tags/{ResourceId}", 
            httpMethod: .DELETE, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Removes tags from an EFS resource. You can remove tags from EFS file systems and access points using this API operation. This operation requires permissions for the elasticfilesystem:UntagResource action.
    ///
    /// Parameters:
    ///   - resourceId: Specifies the EFS resource that you want to remove tags from.
    ///   - tagKeys: The keys of the key-value tag pairs that you want to remove from the specified EFS resource.
    ///   - logger: Logger use during operation
    @inlinable
    public func untagResource(
        resourceId: String,
        tagKeys: [String],
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws {
        let input = UntagResourceRequest(
            resourceId: resourceId, 
            tagKeys: tagKeys
        )
        return try await self.untagResource(input, logger: logger)
    }

    /// Updates the throughput mode or the amount of provisioned throughput of an existing file system.
    @Sendable
    @inlinable
    public func updateFileSystem(_ input: UpdateFileSystemRequest, logger: Logger = AWSClient.loggingDisabled) async throws -> FileSystemDescription {
        try await self.client.execute(
            operation: "UpdateFileSystem", 
            path: "/2015-02-01/file-systems/{FileSystemId}", 
            httpMethod: .PUT, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Updates the throughput mode or the amount of provisioned throughput of an existing file system.
    ///
    /// Parameters:
    ///   - fileSystemId: The ID of the file system that you want to update.
    ///   - provisionedThroughputInMibps: (Optional) The throughput, measured in mebibytes per second (MiBps), that you want to provision for a file system that you're creating. Required if ThroughputMode is set to provisioned. Valid values are 1-3414 MiBps, with the upper limit depending on Region. To increase this limit, contact Amazon Web ServicesSupport. For more information, see Amazon EFS quotas that you can increase in the Amazon EFS User Guide.
    ///   - throughputMode: (Optional) Updates the file system's throughput mode. If you're not updating your throughput mode, you don't need to provide this value in your request. If you are changing the ThroughputMode to provisioned,  you must also set a value for ProvisionedThroughputInMibps.
    ///   - logger: Logger use during operation
    @inlinable
    public func updateFileSystem(
        fileSystemId: String,
        provisionedThroughputInMibps: Double? = nil,
        throughputMode: ThroughputMode? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> FileSystemDescription {
        let input = UpdateFileSystemRequest(
            fileSystemId: fileSystemId, 
            provisionedThroughputInMibps: provisionedThroughputInMibps, 
            throughputMode: throughputMode
        )
        return try await self.updateFileSystem(input, logger: logger)
    }

    /// Updates protection on the file system. This operation requires permissions for the elasticfilesystem:UpdateFileSystemProtection action.
    @Sendable
    @inlinable
    public func updateFileSystemProtection(_ input: UpdateFileSystemProtectionRequest, logger: Logger = AWSClient.loggingDisabled) async throws -> FileSystemProtectionDescription {
        try await self.client.execute(
            operation: "UpdateFileSystemProtection", 
            path: "/2015-02-01/file-systems/{FileSystemId}/protection", 
            httpMethod: .PUT, 
            serviceConfig: self.config, 
            input: input, 
            logger: logger
        )
    }
    /// Updates protection on the file system. This operation requires permissions for the elasticfilesystem:UpdateFileSystemProtection action.
    ///
    /// Parameters:
    ///   - fileSystemId: The ID of the file system to update.
    ///   - replicationOverwriteProtection: The status of the file system's replication overwrite protection.    ENABLED – The file system cannot be used as the destination file system in a replication configuration. The file system is writeable. Replication overwrite protection is ENABLED by default.     DISABLED – The file system can be used as the destination file system in a replication configuration. The file system is read-only and can only be modified by EFS replication.    REPLICATING – The file system is being used as the destination file system in a replication configuration. The file system is read-only and is only modified only by EFS replication.   If the replication configuration is deleted, the file system's replication overwrite protection is re-enabled and the file system becomes writeable.
    ///   - logger: Logger use during operation
    @inlinable
    public func updateFileSystemProtection(
        fileSystemId: String,
        replicationOverwriteProtection: ReplicationOverwriteProtection? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) async throws -> FileSystemProtectionDescription {
        let input = UpdateFileSystemProtectionRequest(
            fileSystemId: fileSystemId, 
            replicationOverwriteProtection: replicationOverwriteProtection
        )
        return try await self.updateFileSystemProtection(input, logger: logger)
    }
}

extension EFS {
    /// Initializer required by `AWSService.with(middlewares:timeout:byteBufferAllocator:options)`. You are not able to use this initializer directly as there are not public
    /// initializers for `AWSServiceConfig.Patch`. Please use `AWSService.with(middlewares:timeout:byteBufferAllocator:options)` instead.
    public init(from: EFS, patch: AWSServiceConfig.Patch) {
        self.client = from.client
        self.config = from.config.with(patch: patch)
    }
}

// MARK: Paginators

@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
extension EFS {
    /// Return PaginatorSequence for operation ``describeAccessPoints(_:logger:)``.
    ///
    /// - Parameters:
    ///   - input: Input for operation
    ///   - logger: Logger used for logging
    @inlinable
    public func describeAccessPointsPaginator(
        _ input: DescribeAccessPointsRequest,
        logger: Logger = AWSClient.loggingDisabled
    ) -> AWSClient.PaginatorSequence<DescribeAccessPointsRequest, DescribeAccessPointsResponse> {
        return .init(
            input: input,
            command: self.describeAccessPoints,
            inputKey: \DescribeAccessPointsRequest.nextToken,
            outputKey: \DescribeAccessPointsResponse.nextToken,
            logger: logger
        )
    }
    /// Return PaginatorSequence for operation ``describeAccessPoints(_:logger:)``.
    ///
    /// - Parameters:
    ///   - accessPointId: (Optional) Specifies an EFS access point to describe in the response; mutually exclusive with FileSystemId.
    ///   - fileSystemId: (Optional) If you provide a FileSystemId, EFS returns all access points for that file system; mutually exclusive with AccessPointId.
    ///   - maxResults: (Optional) When retrieving all access points for a file system, you can optionally specify the MaxItems parameter to limit the number of objects returned in a response.   The default value is 100.
    ///   - logger: Logger used for logging
    @inlinable
    public func describeAccessPointsPaginator(
        accessPointId: String? = nil,
        fileSystemId: String? = nil,
        maxResults: Int? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) -> AWSClient.PaginatorSequence<DescribeAccessPointsRequest, DescribeAccessPointsResponse> {
        let input = DescribeAccessPointsRequest(
            accessPointId: accessPointId, 
            fileSystemId: fileSystemId, 
            maxResults: maxResults
        )
        return self.describeAccessPointsPaginator(input, logger: logger)
    }

    /// Return PaginatorSequence for operation ``describeFileSystems(_:logger:)``.
    ///
    /// - Parameters:
    ///   - input: Input for operation
    ///   - logger: Logger used for logging
    @inlinable
    public func describeFileSystemsPaginator(
        _ input: DescribeFileSystemsRequest,
        logger: Logger = AWSClient.loggingDisabled
    ) -> AWSClient.PaginatorSequence<DescribeFileSystemsRequest, DescribeFileSystemsResponse> {
        return .init(
            input: input,
            command: self.describeFileSystems,
            inputKey: \DescribeFileSystemsRequest.marker,
            outputKey: \DescribeFileSystemsResponse.nextMarker,
            logger: logger
        )
    }
    /// Return PaginatorSequence for operation ``describeFileSystems(_:logger:)``.
    ///
    /// - Parameters:
    ///   - creationToken: (Optional) Restricts the list to the file system with this creation token (String). You specify a creation token when you create an Amazon EFS file system.
    ///   - fileSystemId: (Optional) ID of the file system whose description you want to retrieve (String).
    ///   - maxItems: (Optional) Specifies the maximum number of file systems to return in the response (integer). This number is automatically set to 100. The response is paginated at 100 per page if you have more than 100 file systems.
    ///   - logger: Logger used for logging
    @inlinable
    public func describeFileSystemsPaginator(
        creationToken: String? = nil,
        fileSystemId: String? = nil,
        maxItems: Int? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) -> AWSClient.PaginatorSequence<DescribeFileSystemsRequest, DescribeFileSystemsResponse> {
        let input = DescribeFileSystemsRequest(
            creationToken: creationToken, 
            fileSystemId: fileSystemId, 
            maxItems: maxItems
        )
        return self.describeFileSystemsPaginator(input, logger: logger)
    }

    /// Return PaginatorSequence for operation ``describeMountTargets(_:logger:)``.
    ///
    /// - Parameters:
    ///   - input: Input for operation
    ///   - logger: Logger used for logging
    @inlinable
    public func describeMountTargetsPaginator(
        _ input: DescribeMountTargetsRequest,
        logger: Logger = AWSClient.loggingDisabled
    ) -> AWSClient.PaginatorSequence<DescribeMountTargetsRequest, DescribeMountTargetsResponse> {
        return .init(
            input: input,
            command: self.describeMountTargets,
            inputKey: \DescribeMountTargetsRequest.marker,
            outputKey: \DescribeMountTargetsResponse.nextMarker,
            logger: logger
        )
    }
    /// Return PaginatorSequence for operation ``describeMountTargets(_:logger:)``.
    ///
    /// - Parameters:
    ///   - accessPointId: (Optional) The ID of the access point whose mount targets that you want to list. It must be included in your request if a FileSystemId or MountTargetId is not included in your request. Accepts either an access point ID or ARN as input.
    ///   - fileSystemId: (Optional) ID of the file system whose mount targets you want to list (String). It must be included in your request if an AccessPointId or MountTargetId is not included. Accepts either a file system ID or ARN as input.
    ///   - maxItems: (Optional) Maximum number of mount targets to return in the response. Currently, this number is automatically set to 10, and other values are ignored. The response is paginated at 100 per page if you have more than 100 mount targets.
    ///   - mountTargetId: (Optional) ID of the mount target that you want to have described (String). It must be included in your request if FileSystemId is not included. Accepts either a mount target ID or ARN as input.
    ///   - logger: Logger used for logging
    @inlinable
    public func describeMountTargetsPaginator(
        accessPointId: String? = nil,
        fileSystemId: String? = nil,
        maxItems: Int? = nil,
        mountTargetId: String? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) -> AWSClient.PaginatorSequence<DescribeMountTargetsRequest, DescribeMountTargetsResponse> {
        let input = DescribeMountTargetsRequest(
            accessPointId: accessPointId, 
            fileSystemId: fileSystemId, 
            maxItems: maxItems, 
            mountTargetId: mountTargetId
        )
        return self.describeMountTargetsPaginator(input, logger: logger)
    }

    /// Return PaginatorSequence for operation ``describeReplicationConfigurations(_:logger:)``.
    ///
    /// - Parameters:
    ///   - input: Input for operation
    ///   - logger: Logger used for logging
    @inlinable
    public func describeReplicationConfigurationsPaginator(
        _ input: DescribeReplicationConfigurationsRequest,
        logger: Logger = AWSClient.loggingDisabled
    ) -> AWSClient.PaginatorSequence<DescribeReplicationConfigurationsRequest, DescribeReplicationConfigurationsResponse> {
        return .init(
            input: input,
            command: self.describeReplicationConfigurations,
            inputKey: \DescribeReplicationConfigurationsRequest.nextToken,
            outputKey: \DescribeReplicationConfigurationsResponse.nextToken,
            logger: logger
        )
    }
    /// Return PaginatorSequence for operation ``describeReplicationConfigurations(_:logger:)``.
    ///
    /// - Parameters:
    ///   - fileSystemId: You can retrieve the replication configuration for a specific file system by providing its file system ID. For cross-account,cross-region replication, an account can only describe the replication configuration for a file system in its own Region.
    ///   - maxResults: (Optional) To limit the number of objects returned in a response, you can specify the MaxItems parameter. The default value is 100.
    ///   - logger: Logger used for logging
    @inlinable
    public func describeReplicationConfigurationsPaginator(
        fileSystemId: String? = nil,
        maxResults: Int? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) -> AWSClient.PaginatorSequence<DescribeReplicationConfigurationsRequest, DescribeReplicationConfigurationsResponse> {
        let input = DescribeReplicationConfigurationsRequest(
            fileSystemId: fileSystemId, 
            maxResults: maxResults
        )
        return self.describeReplicationConfigurationsPaginator(input, logger: logger)
    }

    /// Return PaginatorSequence for operation ``describeTags(_:logger:)``.
    ///
    /// - Parameters:
    ///   - input: Input for operation
    ///   - logger: Logger used for logging
    @available(*, deprecated, message: "Use ListTagsForResource.")
    @inlinable
    public func describeTagsPaginator(
        _ input: DescribeTagsRequest,
        logger: Logger = AWSClient.loggingDisabled
    ) -> AWSClient.PaginatorSequence<DescribeTagsRequest, DescribeTagsResponse> {
        return .init(
            input: input,
            command: self.describeTags,
            inputKey: \DescribeTagsRequest.marker,
            outputKey: \DescribeTagsResponse.nextMarker,
            logger: logger
        )
    }
    /// Return PaginatorSequence for operation ``describeTags(_:logger:)``.
    ///
    /// - Parameters:
    ///   - fileSystemId: The ID of the file system whose tag set you want to retrieve.
    ///   - maxItems: (Optional) The maximum number of file system tags to return in the response. Currently, this number is automatically set to 100, and other values are ignored. The response is paginated at 100 per page if you have more than 100 tags.
    ///   - logger: Logger used for logging
    @available(*, deprecated, message: "Use ListTagsForResource.")
    @inlinable
    public func describeTagsPaginator(
        fileSystemId: String,
        maxItems: Int? = nil,
        logger: Logger = AWSClient.loggingDisabled        
    ) -> AWSClient.PaginatorSequence<DescribeTagsRequest, DescribeTagsResponse> {
        let input = DescribeTagsRequest(
            fileSystemId: fileSystemId, 
            maxItems: maxItems
        )
        return self.describeTagsPaginator(input, logger: logger)
    }

    /// Return PaginatorSequence for operation ``listTagsForResource(_:logger:)``.
    ///
    /// - Parameters:
    ///   - input: Input for operation
    ///   - logger: Logger used for logging
    @inlinable
    public func listTagsForResourcePaginator(
        _ input: ListTagsForResourceRequest,
        logger: Logger = AWSClient.loggingDisabled
    ) -> AWSClient.PaginatorSequence<ListTagsForResourceRequest, ListTagsForResourceResponse> {
        return .init(
            input: input,
            command: self.listTagsForResource,
            inputKey: \ListTagsForResourceRequest.nextToken,
            outputKey: \ListTagsForResourceResponse.nextToken,
            logger: logger
        )
    }
    /// Return PaginatorSequence for operation ``listTagsForResource(_:logger:)``.
    ///
    /// - Parameters:
    ///   - maxResults: (Optional) Specifies the maximum number of tag objects to return in the response. The default value is 100.
    ///   - resourceId: Specifies the EFS resource you want to retrieve tags for. You can retrieve tags for EFS file systems and access points using this API endpoint.
    ///   - logger: Logger used for logging
    @inlinable
    public func listTagsForResourcePaginator(
        maxResults: Int? = nil,
        resourceId: String,
        logger: Logger = AWSClient.loggingDisabled        
    ) -> AWSClient.PaginatorSequence<ListTagsForResourceRequest, ListTagsForResourceResponse> {
        let input = ListTagsForResourceRequest(
            maxResults: maxResults, 
            resourceId: resourceId
        )
        return self.listTagsForResourcePaginator(input, logger: logger)
    }
}

extension EFS.DescribeAccessPointsRequest: AWSPaginateToken {
    @inlinable
    public func usingPaginationToken(_ token: String) -> EFS.DescribeAccessPointsRequest {
        return .init(
            accessPointId: self.accessPointId,
            fileSystemId: self.fileSystemId,
            maxResults: self.maxResults,
            nextToken: token
        )
    }
}

extension EFS.DescribeFileSystemsRequest: AWSPaginateToken {
    @inlinable
    public func usingPaginationToken(_ token: String) -> EFS.DescribeFileSystemsRequest {
        return .init(
            creationToken: self.creationToken,
            fileSystemId: self.fileSystemId,
            marker: token,
            maxItems: self.maxItems
        )
    }
}

extension EFS.DescribeMountTargetsRequest: AWSPaginateToken {
    @inlinable
    public func usingPaginationToken(_ token: String) -> EFS.DescribeMountTargetsRequest {
        return .init(
            accessPointId: self.accessPointId,
            fileSystemId: self.fileSystemId,
            marker: token,
            maxItems: self.maxItems,
            mountTargetId: self.mountTargetId
        )
    }
}

extension EFS.DescribeReplicationConfigurationsRequest: AWSPaginateToken {
    @inlinable
    public func usingPaginationToken(_ token: String) -> EFS.DescribeReplicationConfigurationsRequest {
        return .init(
            fileSystemId: self.fileSystemId,
            maxResults: self.maxResults,
            nextToken: token
        )
    }
}

extension EFS.DescribeTagsRequest: AWSPaginateToken {
    @inlinable
    public func usingPaginationToken(_ token: String) -> EFS.DescribeTagsRequest {
        return .init(
            fileSystemId: self.fileSystemId,
            marker: token,
            maxItems: self.maxItems
        )
    }
}

extension EFS.ListTagsForResourceRequest: AWSPaginateToken {
    @inlinable
    public func usingPaginationToken(_ token: String) -> EFS.ListTagsForResourceRequest {
        return .init(
            maxResults: self.maxResults,
            nextToken: token,
            resourceId: self.resourceId
        )
    }
}
